using ExpressesClass.BestApi.Base;
using ExpressesClass.BestApi.kdWaybillPushSiteNotifyRsp;
using ExpressesClass.BestApi.Utils;
using System;

namespace ExpressesClass.BestApi.kdWaybillPushSiteNotifyReq
{
    public class KdWaybillPushSiteNotifyReq : BaseRequest
    {
		public SiteInfos siteInfos { get; set; }
		public Auth auth { get; set; }
       
		public override String obtainServiceType()
        {
            return "KD_WAYBILL_PUSH_SITE_NOTIFY";

        }

		public override BaseResponse makeResponse(string rsp, string format)
        {
           if ("XML".Equals(format, StringComparison.InvariantCultureIgnoreCase)) {
               return XmlUtils.xmlToObj(rsp,typeof(KdWaybillPushSiteNotifyRsp)) as KdWaybillPushSiteNotifyRsp;
           }
           return JsonParser.jsonToObj<KdWaybillPushSiteNotifyRsp>(rsp);
        }


    }
}